<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	MasterPageFile="~/App_ThemeMasters/NoStyle/AdminOneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" %>

<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="ScsAspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>
<%@ Register Assembly="UserManagement.Gui.AspNet" Namespace="UserManagement.Gui.AspNet" TagPrefix="usr" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->

<asp:Content ID="c1" ContentPlaceHolderID="title" runat="server">
	<%SecurityPrivilege="AppFunctions.ManageCompanyConfiguration"; %>
    <div class="MainHeaderTitle"><asp:label runat="server" ID="_compManagementlbl">Article Content Filtering Management</asp:label></div>
</asp:Content>

<asp:Content ID="c3" ContentPlaceHolderID="mainContent" runat="server">
    <swf:BizProc runat="server" ID="ugrp" factoryName="userGroup">
    </swf:BizProc>	   
    <swf:BizProc runat="server" ID="filters" factoryName="contentFilters">
		<ParentBizProc id="ugrp" fieldName="id" dataId="pid" />
    </swf:BizProc>	   

	<span class="button1"><snc:ActionButton runat="server" ID="addBtn2" Actions="ugrp.AddBizObj" Text="Add" /></span>
	<span class="button6"><snc:ActionButton runat="server" ID="updateBtn2" Actions="ugrp.UpdateBizObj" Text="Update" /></span>
	<span class="button1"><snc:ActionButton runat="server" ID="cancelBtn2" Actions="ugrp.CancelEdits" Text="Cancel" /></span>
	<span class="button5"><snc:ActionButton runat="server" ID="deleteBtn2" Actions="ugrp.DeleteBizObj" Text="Delete" ClientClick="if(!confirm('Are you sure you want to delete?'))return false;"/></span>
    <div class="clearer"></div>

	<snc:Combo ID="companyUserGroup" runat="server"  Mode="Classic" GetDataUrl="NitobiLiveStreamHandler.aspx" ParentBizProcIds="ugrp" DataTextField="name">
		<TextBox Width="250" />
		<List Width="370" Height="200" />
		<Columns>
			<ntb:BoundColumn DataField="id" Visible="false" />
			<ntb:BoundColumn DataField="name" HeaderText="Name" width="100" ReadOnly="false" />
			<ntb:BoundColumn DataField="description" HeaderText="Description" width="225" ReadOnly="false" />
		</Columns>
	</snc:Combo>
	
	<div style="padding: 10px 0px 25px 0px">
	<snc:Grid ParentBizProcIds="filters" ID="filterGrid" runat="server" mode="LiveScrolling" Width="800px" Height="150px" ShowToolbar="false" ShowCellToolTips="true" SelectionMode="Single" AllowSorting="false" Resizable="Both">
		<Columns>
				<ntb:KeyColumn DataField="id" />
				<ntb:ComboColumn DataField="articleType" HeaderText="Type" width="110" ValueField="id" DataSourceId="getArticleFilterArticleTypes" GetDataUrl="/NitobiLiveStreamHandler.aspx" ReadOnly="false">
					<ntb:BoundColumn DataField="id" Visible="false" />
					<ntb:BoundColumn DataField="name" />
				</ntb:ComboColumn>
				<ntb:CheckboxColumn DataField="stripDisallowedAndSave" HeaderText="Strip & Save" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowNothingButSpecified" HeaderText="Only Spec" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowClientScripts" HeaderText="Scripts" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowIFrames" HeaderText="IFrames" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowFlashObjects" HeaderText="Flash" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowYouTubeFlashObjects" HeaderText="You Tube" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowOtherObjects" HeaderText="Gen Objects" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowTables" HeaderText="Tables" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowExternalAnchors" HeaderText="Ext. Anchors" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowExternalImages" HeaderText="Ext. Images" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowPBUIH" HeaderText="Basic Styles" width="80" ReadOnly="false"  />
				<ntb:CheckboxColumn DataField="allowLists" HeaderText="Lists" width="80" ReadOnly="false"  />
		</Columns>	
	</snc:Grid>
	</div>
</asp:Content>